<?php
/**
 * Created by PhpStorm.
 * User: xiaotao
 * Date: 18-6-11
 * Time: 下午10:51
 */

namespace app\common\model;

use think\Model;

class Article extends Model
{
    protected $type = [
        'id'            =>  'integer',
        'category_id'   =>  'integer',
        'group'         =>  'integer',
        'favor'         =>  'integer',
        'auth'          =>  'integer',
        'create_time'   =>  'integer',
        'status'        =>  'integer'
    ];

    public function category() {
        return $this->belongsTo('Category');
    }
}